<?php

namespace App\Http\Resources;

use App\Models\Order;

class ExchangeListResource extends Resource
{
    public function toArray($request)
    {
        /** @var Order $this */
        return [
            'id' => $this->id,
            'usdt_number' => bcadd($this->usdt_number, 0, 4),
            'ytb_number' => bcadd($this->bp_number, 0, 4),
            'rate' => bcadd($this->rate, 0, 4),
            'time' => (string)$this->time,
        ];
    }
}